package com.oazon.moco.lan.core.client;

import com.oazon.moco.lan.core.client.impl.LanRequest.InnerListener;
import com.oazon.moco.lan.core.http.bean.JsonRequest;
import com.oazon.moco.lan.core.http.bean.JsonResponse;

public interface ILanRequestControl {

	/**
	 * 
	 * @param jsonRequest
	 *            请求的消息对象
	 * @param innerListener
	 *            事件监听者，不需要则为null
	 * @throws NullPointerException
	 *             jsonRequest不能缺少变量Operation和type
	 */
	void sendRequset(JsonRequest jsonRequest, InnerListener innerListener)
			throws NullPointerException;

	void sendRequset(JsonRequest jsonRequest, InnerListener innerListener,
			String subscribeType) throws NullPointerException;
	
/*	
	*//**
	 * 
	 * @param jsonResponse
	 *            请求的消息对象
	 * @param innerListener
	 *            事件监听者，不需要则为null
	 * @throws NullPointerException
	 *             jsonRequest不能缺少变量Operation和type
	 *//*
	void sendResponse(JsonResponse jsonResponse, InnerListener innerListener)
			throws NullPointerException;*/

}
